<!doctype html>	
<html>	
  <head>	
    <meta charset="utf-8">	
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>	
    <meta name="format-detection" content="telephone=no" />
    <title>window</title>	
    <link rel="stylesheet" type="text/css" href="../css/api.css" />	
    <link rel="stylesheet" type="text/css" href="../css/common.css" />	
    <style>	
     	
     .topbar {background: #ff5d5f; height:35px;position:relative}	
     	
     .whitebar {}	
     .titlebar{background-color: #ff5d5f;}
     #localrefresh {display:none;float: right; width: 40px; padding: 5px 10px;}	
     #field1::-webkit-input-placeholder { color:#fff; }	
     #field1 {height: 20px; line-height: 20px; width: 70%;}	
	
     .swipe {line-height:35px;margin-right: 10px;color: #FF8400;}	
     .back {float: left;position:absolute;left:0;top:0px;padding:10px;}	
     .back img {height: 14px;}	
     .topbar .title {line-height: 35px;text-align: center;font-size: 16px;color:#fff;}	
    </style>	
  </head>	
  <body>	
    <div id="wrap">	
      <div id="thridHeader" class="titlebar">	
        <div class="topbar whitebar">	
          <div class="back" tapmode onclick="close_cur_window();"><img src="../image/back_icon_app.png" alt=""></div>	
          <div class="title" id="id_title"></div>	
        </div>	
      </div>	
    </div>	
  </body>	
  <script type="text/javascript" src="../script/api.js"></script>	
  <script type="text/javascript" src="../script/version_update.js"></script>
  <script type="text/javascript" src="../script/qly_comm.js"></script>
  <script type="text/javascript">	
    
    var frameParams = null; 
    apiready = function(){	
      $api.html($api.byId("id_title"),api.pageParam.window_title) ; 
      frameParams = api.pageParam.frameParams; 
      frameParams.pageParam =  api.pageParam ;
      delete frameParams.window_title ; 
      delete frameParams.pageParam.frameParams; 
      
       reload_frame();
       
       
       
       
      
		
       
       
       api.addEventListener({
		    name:'viewappear'
		}, function(ret, err){        
			  if(QlyApi.getTalkingdata()){
				QlyApi.getTalkingdata().onPageStart({pageName:api.pageParam.window_title});
			}
		});
		       
       api.addEventListener({
		    name:'viewdisappear'
		}, function(ret, err){        
		   if(QlyApi.getTalkingdata()){
				QlyApi.getTalkingdata().onPageEnd({pageName:api.pageParam.window_title});
			}
		});
       
       api.addEventListener({
		    name:'keyback'
		}, function(ret, err){      
		    if(QlyApi.getTalkingdata()){
				QlyApi.getTalkingdata().onPageEnd({pageName:api.pageParam.window_title});
			} 
			api.closeWin({
		        animation: {
		            type: 'push',
		            subType: 'from_left',
		            duration: 300
		        }
		    });
		});
       
    };	
    
    function reload_frame(){
    	  var thridHeader = $api.byId('thridHeader');	
      $api.fixIos7Bar(thridHeader);	
      $api.fixStatusBar( thridHeader );
      var thridHeader = $api.offset(thridHeader);	
    		frameParams.rect = {
	                x:0,
	                y:thridHeader.h,
	                w:'auto',
	                h:'auto'	
	            };
	      frameParams.reload = true ; 
	       api.openFrame (frameParams);
	  }
  	
  	
 
    
  </script>	
</html>	
